package com.app.tools;

import java.util.ArrayList;
import java.util.List;

public class Pages {
    private int currentPageNo = 1; // 当前页码
    private int pageSize = 4; // 页面大小，即每页显示记录数
    private int totalCount; // 记录总数
    private int totalPageCount; // 总页数

    public int getCurrentPageNo() {
        return currentPageNo;
    }

    public void setCurrentPageNo(int currentPageNo) {
        this.currentPageNo = currentPageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalPageCount=totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;
        this.totalCount = totalCount;
    }

    public int getTotalPageCount() {
        return totalPageCount;
    }

    public void setTotalPageCount(int totalPageCount) {
        this.totalPageCount = totalPageCount;
    }
}
